import {
	state
} from '@/stores/app-store'

const dy = 'https://part-cloud-1314961707.cos.ap-beijing.myqcloud.com/2023/11/28/9fe4ed044c804d53a41b57ccbbc7ce29.png'
const dy2 = 'https://part-cloud-1314961707.cos.ap-beijing.myqcloud.com/2023/11/28/27519b8abe8c4a0699682eefbeeb216f.png'

const wgy = 'https://part-cloud-1314961707.cos.ap-beijing.myqcloud.com/2023/11/28/ed7974c143c9406abaefae824fb6e279.png'
const wgy2 = 'https://part-cloud-1314961707.cos.ap-beijing.myqcloud.com/2023/11/28/98d9c840515f414f9871ef74087eae10.png'

const zyz = 'https://part-cloud-1314961707.cos.ap-beijing.myqcloud.com/2023/11/28/a5983804ed6641e88342847b3e6acc89.png'
const zyz2 = 'https://part-cloud-1314961707.cos.ap-beijing.myqcloud.com/2023/11/28/10af797e20a64cc08b851190d70c1fbc.png'

const bddw = 'https://part-cloud-1314961707.cos.ap-beijing.myqcloud.com/2023/11/28/a60796bcd10f4cf28cdea9861fffd51f.png'
const bddw2 =
	'https://part-cloud-1314961707.cos.ap-beijing.myqcloud.com/2023/11/28/daa3157cb7e542329a017dcf7b4fb3eb.png'

const qz = 'https://part-cloud-1314961707.cos.ap-beijing.myqcloud.com/2023/11/28/e2675b901f1a45338284606f2c59435f.png'
const qz2 = 'https://part-cloud-1314961707.cos.ap-beijing.myqcloud.com/2023/11/28/5156d97c4f414dd3a5acdfb303f63a3b.png'

const zcbfd =
	'https://part-cloud-1314961707.cos.ap-beijing.myqcloud.com/2023/11/28/ab37380a89b3419383dd952cc15bbe33.png'
const zcbfd2 =
	'https://part-cloud-1314961707.cos.ap-beijing.myqcloud.com/2023/11/28/4ab001f968154fa7ae52fd577a3318b4.png'

 
const qtgzry =
	'https://part-cloud-1314961707.cos.ap-beijing.myqcloud.com/2023/11/28/9dc708b4c5c947e8aad05990d957637f.png'
const qtgzry2 =
	'https://part-cloud-1314961707.cos.ap-beijing.myqcloud.com/2023/11/28/0660f99d06094b37bfc78d4206f06e23.png'


export function getRoleList() {
return [{
		label: '党员/预备党员',
		disabledImg: dy2,
		img: dy,
		disabled: !(state.info?.registList?.includes(0)),
		type: 0,
		formNum: 11,
		icon: 'wgIcon-danghui',
	},
	{
		label: '网格员',
		disabledImg: wgy2,
		img: wgy,
		disabled: !(state.info?.registList?.includes(1)),
		type: 1,
		formNum: 11,
		icon: 'wgIcon-wanggeyuan',
	},
	{
		label: '居民',
		disabledImg: qz2,
		img: qz,
		disabled: !(state.info?.registList?.includes(3)),
		type: 2,
		formNum: 8,
		icon: 'wgIcon-qunzhong',
	},
]
}

export function getRole(type) {
	return getRoleList().filter(e => e.type === type)[0]
}

export function getSelectData(list, value) {
	return list.filter(e => e.value === value)[0]
}
export const pageType = [{
		label: '注册',
		value: 0,
	},
	{
		label: '完善信息',
		value: 1,
	},
]